package com.mate.model;

import java.io.Serializable;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 热门评论表
 * </p>
 *
 * @author boy
 * @since 2020-05-15
 */
@TableName("m_comment")
public class MComment extends Model<MComment> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.INPUT)
    private Integer id;

    @TableField("movie_id")
    private Integer movieId;
    /**
     * 评论人名字
     */
    @TableField("people_name")
    private String peopleName;
    /**
     * 评论人头像
     */
    @TableField("people_img")
    private String peopleImg;
    /**
     * 评论人打分
     */
    @TableField("people_score")
    private String peopleScore;
    /**
     * 评论人评论
     */
    @TableField("people_txt")
    private String peopleTxt;
    /**
     * 评论人时间
     */
    @TableField("people_time")
    private Date peopleTime;
    /**
     * 点赞数
     */
    @TableField("up_count")
    private Integer upCount;
    @TableField("create_time")
    private Date createTime;
    @TableField("is_delete")
    private String isDelete;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMovieId() {
        return movieId;
    }

    public void setMovieId(Integer movieId) {
        this.movieId = movieId;
    }

    public String getPeopleName() {
        return peopleName;
    }

    public void setPeopleName(String peopleName) {
        this.peopleName = peopleName;
    }

    public String getPeopleImg() {
        return peopleImg;
    }

    public void setPeopleImg(String peopleImg) {
        this.peopleImg = peopleImg;
    }

    public String getPeopleScore() {
        return peopleScore;
    }

    public void setPeopleScore(String peopleScore) {
        this.peopleScore = peopleScore;
    }

    public String getPeopleTxt() {
        return peopleTxt;
    }

    public void setPeopleTxt(String peopleTxt) {
        this.peopleTxt = peopleTxt;
    }

    public Date getPeopleTime() {
        return peopleTime;
    }

    public void setPeopleTime(Date peopleTime) {
        this.peopleTime = peopleTime;
    }

    public Integer getUpCount() {
        return upCount;
    }

    public void setUpCount(Integer upCount) {
        this.upCount = upCount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "MComment{" +
                ", id=" + id +
                ", movieId=" + movieId +
                ", peopleName=" + peopleName +
                ", peopleImg=" + peopleImg +
                ", peopleScore=" + peopleScore +
                ", peopleTxt=" + peopleTxt +
                ", peopleTime=" + peopleTime +
                ", upCount=" + upCount +
                ", createTime=" + createTime +
                ", isDelete=" + isDelete +
                "}";
    }
}
